//
//  comSend.swift
//  NewLndd
//
//  Created by 邵禹曦 on 2020/1/7.
//  Copyright © 2020 辽宁当代. All rights reserved.
//

import UIKit
// MARK: - 商品订购
class comSend: NSObject {
    // MARK: - 属性
    var CON : String?  = "---"    // 商品名称
    var COI : String?    = "---"   // 商品代码
    var IPI : String?   = "---"       // 购销计划编号
    var IP : String?      = "---"  // 购销价格
    var IQ : String?     = "---"    // 购销数量
    var MAPQ : String?   = "---" // 最大订购数量
    var MIPQ : String?    = "---" //最小订购数量
    var MIPCQ : String?  = "---"  //最小订购变动量
    var ISD : String?   = "---" //购销开始日期
    var IED : String?    = "---" // ED购销结束日期
    
    // MARK: - 自定义构造函数
    init(dict : [String : AnyObject]) {
        super.init()
        setValuesForKeys(dict)
        COI = (dict["COI"] as? String)
        CON = (dict["CON"] as? String)
        IPI = (dict["IPI"] as? String)
        IP = (dict["IP"] as? String)
        IQ = (dict["IQ"] as? String)
        MAPQ = (dict["MAPQ"] as? String)
        MIPQ = (dict["MIPQ"] as? String)
        MIPCQ = (dict["MIPCQ"] as? String)
        ISD = (dict["ISD"] as? String)
        IED = (dict["IED"] as? String)

        
    }
    // 重写
    override func setValue(_ value: Any?, forUndefinedKey key: String) {}
}
